home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Games of Daze
/
Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso
/
x2ftp
/
msdos
/
source
/
swagg-m
/
hardware.swg
/
0043_AMI BIOS Turbo Mode.pas
< prev
Wrap
Pascal/Delphi Source File
|
1995-02-28
|
541b
|
28 lines
(* Program name, SPEED. Toggles the fast/slow turbo mode on most
386/486 mother boards with an AMI BIOS. *)
uses DOS;
var
reg : registers;
begin
if ParamCount = 0 then
writeln(#13,#10,'"SPEED +" toggles turbo to fast, "SPEED -" toggles turbo to slow ');
if ParamStr(1) = '+' then
begin
reg.ah := $F0;
reg.al := $02;
intr($16,reg);
end; {Set turbo mode to fast}
if ParamStr(1) = '-'then
begin
reg.ah := $F0;
reg.al := $01;
intr($16,reg);
end; {Set turbo node to slow}
end.